package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.EmployeeQuery;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void delete(Long id);

    void save(Employee employee, Long[] ids);

    Employee get(Long id);

    List<Employee> listAll();

    void update(Employee employee, Long[] ids);

    Employee login(String username, String password);

    PageInfo list(EmployeeQuery employeeQuery);

    void deleteRelation(Long id);

    Employee selectByName(String name);

    void deleteBatch(Long[] ids);

    Workbook exportXls();

    void inportXls(MultipartFile multipartFile) throws IOException;
}
